function getGuestbookItems($count)
{
  $query  = "SELECT autor, tresc, data FROM guestbook ";
  if($count > 0){
    $query .= "ORDER BY data DESC LIMIT $count";
  }
  else{
    $query .= "ORDER BY data DESC";
  }
  if(($result = $this->dbo->query($query)) && 
     ($rows = $result->fetchAll(PDO::FETCH_ASSOC))){
     return $rows;
  }
  else{
    return array();
  }
}